package com.hphs.dao;

import com.hphs.model.Category;
import com.hphs.model.CategoryQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper  //告诉springboot容器 我把dao交给你来管理
public interface CategoryDao {

    public List<Category> select(CategoryQuery query);

    public Integer insert(Category category);

    public Integer update(Category category);
    //软删除
    public Integer updateStatus(@Param("id") Integer id, @Param("status")Integer status);
}
